#include <iostream>
#include <fstream>
#include "../SearchEnginer.h"
#include "../Finder.h"

int main(int argc, char * argv[]) {
	if (argc == 2) {
		SearchEnginer::Finder se;
		std::cout << "Load vocabluary ..." << std::endl;
		std::fstream os;
		os.open("basic1.dic", std::fstream::in);
		os >> se;
		os.close();
		SearchEnginer::SearchEnginer sf(se);
		
		std::cout << "Check word ..." <<std::endl;
		SearchEnginer::ListString list;
	    list = sf.hasWord(argv[1]);
	    SearchEnginer::ListString::iterator itr;
	    for(itr = list.begin(); itr != list.end(); ++itr) {
	       std::cout << *itr << std::endl;
	    }
	    
	}
	return 0;
}


